home *** CD-ROM | disk | FTP | other *** search
/ SGI Hot Mix 17 / Hot Mix 17.iso / HM17_SGI / research / examples / doc / plot01 < prev    next >
Text File  |  1997-07-08  |  1KB  |  29 lines

  1. ; This batch file defines variables used in examples in
  2. ; Chapter 10, "Plotting" of _Using IDL_.
  3.  
  4. ; The following are example data from a fictitious study of Pacific
  5. ; Northwest Salmon fisheries. In the examples, these data are used
  6. ; to represent fish populations sampled in the years 1967, 1970, and
  7. ; from 1975 to 1983. The vectors defined  represent the number of
  8. ; fish counted, in thousands.
  9.  
  10. SOCKEYE=[463, 459, 437, 433, 431, 433, 431, 428, 430, 431, 430]
  11. COHO=[468, 461, 431, 430, 427, 425, 423, 420, 418, 421, 420]
  12. CHINOOK=[514, 509, 495, 497, 497, 494, 493, 491, 492, 493, 493]
  13. HUMPBACK=[467, 465, 449, 446, 445, 444, 443, 443, 443, 443, 445]
  14.  
  15. ; Construct an array containing all of the SAT data.
  16.  
  17. ALLPTS = [[COHO], [SOCKEYE], [HUMPBACK], [CHINOOK]]
  18.  
  19. ; Construct a vector in which each element contains the year of the score.
  20. ; Create a variable containing the number of elements in the YEAR vector
  21. ; minus one.
  22.  
  23. YEAR = [1967, 1970, INDGEN(9) + 1975]
  24. N1 = N_ELEMENTS(YEAR) - 1
  25. ; Construct a vector of names for lines.
  26.  
  27. NAMES=['Coho','Sockeye','Humpback', 'Chinook']
  28.  
  29.